#include<iostream>

using namespace std;

int main()
{
    int income;
    cout << "Enter your income:";
    while ( cin >> income && income >= 0)
    {
        if ( income <= 5000)
        cout << "You should turn in 0 tvarp." << endl;
        else if ( income > 5000 && income <= 15000)
        cout << "You should turn in " << (income - 5000) * 0.1 << " tvarp." << endl;
        else if ( income > 15000 && income <= 35000)
        cout << "You should turn in " << 10000 * 0.1 + (income - 15000) * 0.15 << " tvarp." << endl;
        else if ( income > 35000 )
        cout << "You should turn in " << 10000 * 0.1 + 20000 * 0.15 + (income - 35000) * 0.2 << " tvarp." << endl;
    }
    cout << "Stopping!" << endl;

    return 0;
}